<?php
      $result = array();
      /*@var $acl Arm_Acl */
      $acl = Zend_Registry::get('Arm_Acl');
      /*@var $page Zend_Navigation_Page */
      foreach ($this->container as $page) {
        if($page->isActive()) {
            $page->setClass('activ');
        }
        $resource = $page->getResource();
        $privilege = $page->getPrivilege();
        if($resource  !==  ''  and  $privilege !== '') {
        if($acl->isAllowed($resource, $privilege) === false) {
            continue;
        }
        }
        $result[] = $this->navigation()->menu()->htmlify($page);
      }
      
      echo implode('&nbsp;|&nbsp;', $result);